// frontend/src/router/index.ts
import { createRouter, createWebHistory } from 'vue-router';
import Chat from '@/pages/Chat.vue';
import MedicalAnalysis from '@/pages/MedicalAnalysis.vue';
import ContractAudit from '@/pages/ContractAudit.vue';
import MathPanel from '@/components/MathPanel.vue';
import RegulationPanel from '@/components/RegulationPanel.vue';
import FrontendTestPanel from '@/components/FrontendTestPanel.vue';

const routes = [
  { path: '/', redirect: '/chat' },
  { path: '/chat', component: Chat },
  { path: '/medical', component: MedicalAnalysis },
  { path: '/contract-audit', component: ContractAudit },
  { path: '/math', component: MathPanel },
  { path: '/regulation', component: RegulationPanel },
  { path: '/frontend-test', component: FrontendTestPanel },
];

export const router = createRouter({
  history: createWebHistory(),
  routes,
});
